package com.hnuit.dao;

import com.hnuit.pojo.Users;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface UserCoureseMapper {
    @Select("select * from Users where id=#{id} ")
    @Results({@Result(column="id",property = "courses",
    one = @One(select = "com.hnuit.dao.CoursesMapper.selectcourses"))})
    Users selectByid(int id);
}
